import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
            Scanner scan = new Scanner(System.in);
            System.out.println("What is your name?");
            String name= scan.nextLine();
            System.out.println("Hello"+' '+name);
            System.out.println("What is your first name?");
            String firstName=scan.next();
            System.out.println("Hello"+' '+"Mr."+' '+firstName);
    }
    }